try:
    print(5 / 0)
except:
    print("You can't divide by zero")


f = "alice.txt"
try:
    with open(f, 'r') as file_object:
        content = file_object.read()
except FileNotFoundError:
    print("Sorry, file", f, " not found!")
else:
    words = content.split()
    num = len(words)
    print("The file", f, " has ", num, " words.")
